package com.alphas.xixibackendalphas.common;

public enum StatusCode {
    SUCCESS(200, "操作成功", ""),
    NULL_ERROR(400, "请求数据为空", ""),
    UNAUTHORIZED(401, "未授权", ""),
    NOT_FOUND(404, "资源未找到", ""),
    PARAM_ERROR(400, "参数错误", ""),
    UNKNOWN_ERROR(500, "未知错误", ""),
    SERVER_ERROR(500, "服务器错误", "");

    /**
     * 状态码
     */
    private int code;
    /**
     * 状态码信息
     */
    private String message;
    /**
     * 状态码描述
     */
    private String description;

    StatusCode(int code, String message, String description) {
        this.code = code;
        this.message = message;
        this.description = description;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public String getDescription() {
        return description;
    }
}
